package com.woniuxy.run.user.controller;


import com.woniuxy.ResponseResult;
import com.woniuxy.run.user.entity.Evaluation;
import com.woniuxy.run.user.mapper.EvaluationMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author 
 * @since 2021-03-23
 */
@RestController
@RequestMapping("/evaluation")
public class EvaluationController {

    @Autowired
    private EvaluationMapper mapper;

    //进行评价
    @GetMapping("/talk")
    public ResponseResult evalution(Evaluation evaluation){
        mapper.insert(evaluation);
        return ResponseResult.SUCCESS;
    }
}

